<include file="Public:pageheader" />
<script type="text/javascript"></script>
<script>
function xuan()
		{
		  var a=new Array();
		  var i;
		  var c=0;
		  for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
		  {
		  if(document.getElementsByName("quanxuan[]")[i].checked)
		    {
		     a[c]=document.getElementsByName("quanxuan[]")[i].value;
		     c++;
		     /*alert(a);*/
		  }
		  }
			if(a.length==0)
			{
			  alert("请选择");
			}
			else
			{
				var ss=confirm("确定删除?");
				if(ss==true)
				{
				  location.href="__APP__/Applicant/all_delete/id/"+a;
				}
			}
		}
	function check(){
		var lee = document.getElementById("lee");
		var id = document.getElementById("lee").value;
		if(lee.checked == true){
			window.location.href="__APP__/Applicant/zhuban_person/id/"+id;
		}
	}
</script>
<table id="mytable" cellspacing="0" align="center">
<caption>Tag : {$Think.lang.list_applicant}</caption>
<form method="post" action="__APP__/Applicant/search"><input type="text" name="search"/><input type="submit" value="搜索"/></form>
<form>
<input type="button" value="全选" onclick="ck(true)"/><a href="javascript:xuan()">选择删除</a>
		
<input type="button" value="取消全选" onclick="ck(false)"/>
</form>
<tr>
	<th scope="col"></th>
	<th scope="col">{$Think.lang.number}</th>
	<th scope="col">{$Think.lang.name}</th>
	<th scope="col">{$Think.lang.company}</th>
	<th scope="col">{$Think.lang.email}</th>
	<th scope="col">{$Think.lang.address}</th>
	<th scope="col">{$Think.lang.postcode}</th>
	<th scope="col">{$Think.lang.phone}</th>
	<th scope="col">{$Think.lang.telephone}</th>
	<th scope="col">{$Think.lang.operation}</th>
</tr>
<iterate name="list" id="v">
<tr>
<th><input type="checkbox" name="quanxuan[]" value="{$v.id}" id="lee"/></th>
<th scope="row" class="spec">{$v.id}</th>
<td><a href="__URL__/view/id/{$v.id}">{$v.name}</a></td>
<td>{$v.company}</td>
<td>{$v.email}</td>
<td>{$v.address}</td>
<td>{$v.postcode}</td>
<td>{$v.phone}</td>
<td>{$v.telephone}</td>
<td align="center">
<a href="__URL__/edit/id/{$v.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>
<a href="__URL__/delete/id/{$v.id}" title="{$Think.lang.delete}" onclick="return confirm('你确定要删除吗？')"><img src="__PUBLIC__/images/cross.png" alt="{$Think.lang.delete}" /></a> 							
</td>
</tr>
</eq>
</iterate>
</table>
<div style="float:right;margin-top:20px;">
	<input type="button" value="申请人转主办人" onclick="check()"/>
</div>
<br>
&nbsp&nbsp&nbsp&nbsp{$page}
<include file="Public:footer" />